<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        function sendGet()
        {
            $.ajax({
                type:'get',
                url:'Hello2',
                success:function(body){
                    console.log(body);
                }
            });
        }


        function sendPost()
        {
            $.ajax({
                type:'post',
                url:'Hello2',
                success:function(body){
                    console.log(body);
                }
            });
        }


        function sendDelete()
        {
            $.ajax({
                type:'delete',
                url:'Hello2',
                success:function(body){
                    console.log(body);
                }
            });
        }
    </script>
</head>
<body>
<input type="button" onclick="sendGet();" value="发送Get请求">
<input type="button" onclick="sendPost();" value="发送Post请求" /> 
<input type="button" onclick="sendDelete();" value="发送Delete请求" /> 
</body>
</html>